package gof.com.yew.flyweight;

public class ConcreteChess implements ChessFlyWeight {
	
	private String color;

	public ConcreteChess(String color) {
		this.color = color;
	}

	@Override
	public String getColor() {
		return color;
	}

	@Override
	public void display(Coordinate c) {
		System.out.println("棋子颜色为："+color+"---棋子位置：x="+c.getX()+",y="+c.getY());
	}

}
